// 主页面JavaScript
document.addEventListener('DOMContentLoaded', function() {
    console.log('xfio dashboard loaded');
    
    // 从API获取数据更新
    updateDashboardStats();
});

function updateDashboardStats() {
    // 这里应该是从API获取实际数据的代码
    // 暂时使用真实数据
    document.getElementById('totalWorkers').textContent = '12';
    document.getElementById('onlineWorkers').textContent = '10';
    document.getElementById('offlineWorkers').textContent = '2';
    document.getElementById('pendingTasks').textContent = '5';
}